Results 1 to 1 of 1

Thread: Spawn Event and Freezetag Objective

  1. #1
    Purple Developer Purple Elephant1au's Avatar
    Join Date
    Feb 2012
    Location
    Australia
    Posts
    1,259

    Default Spawn Event and Freezetag Objective

    Hi

    The Reborn Spawn Event has always been a bit annoying when using it in combination with freezetag.

    I managed to find a work around for a few of the issues but theres one i cant seem to get working

    It happens only when the round has not started, mainly because there is no players on the opposing team, but as soon as a player joins the opposing team
    the round starts, everyone is given new weapons but the Spawn Event is not triggered for those who were already spawned.
    But it seems like the players are respawning but maybe using freezetag spawning system or something, i noticed because with my weapon mod which is exec from spawn event, doesnt start in this case so players can abuse it if they catch on that thats how it works.

    So it seems on Roundstart, those players who have already spawned will be 'respawned' to start the round.

    I dont know if this applies to normal objective rounds but i notice it in my server.

    So is there a way to get the spawn event to trigger on roundstart for objective gametypes ?
    Maybe have a special case for freezetag?

    If it could find a way to also trigger at roundstart it would also fix the new map first round problem where it isnt triggered.
    Although most people know to exec it from connection event in that case.

    EDIT::: Ok while working on the excavator i thought of a way i might fix this lol always when im ment to be concentrating i think of a new way to do something on mohaa...

    On Spawn event just add
    local.player.spawned = 1
    wait 3 /// can change but need to be set back to 0
    local.player.spawned = 0

    Then make a thread called roundstart and exec after level waittill roundstart
    Code:
    roundstart:
    
    if(level.roundstart_run)
    end
    
    level.roundstart_run=1
    
     for (local.i = 1; local.i <= $player.size; local.i++)
     {
            local.player = $player[local.i]
            
            if(local.player == NULL || local.player.dmteam == spectator)
            end
            
            if(local.player.spawned != 1)
            thread yourspawnthread local.player
           
            
      }
    end
    Now i think that would work, but it could still cause problems by maybe causing the spawn script to run twice on some players.

    END EDIT:::

    Because the event is also triggered when a player has been frozen, because they are essentially respawned but then hidden and forced to spectate in freezetag mode.
    But its easy to skip this type in the script
    For those who need it

    Code:
    if(local.player.mef_spectator == 1)
    end
    Will end the event script if the player is just respawning when going into freezetag spectate.
    Last edited by Purple Elephant1au; July 7th, 2013 at 12:55 AM.

    Purple's Playground
    OBJ :
    103.29.85.127:12203
    xfire: purpleelephant1au
    email: purpleelephant1au@gmail.com
    skydrive: PurpleElephantSkydrive




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •